import pymysql

import redis



class DelDb():
    def __init__(self):
        self.conn = pymysql.connect(host='localhost',user='root',password='hxy',db='myflask',charset='utf8',cursorclass=pymysql.cursors.DictCursor)
        self.cur = self.conn.cursor()
    def delete(self,sql):
        self.cur.execute(sql)
        self.conn.commit()
        return 'delete ok'